Rect Constructor

Initializes a new instance of Rect.
 

Parameters

x

Type: Number
The X coordinate of a point where the rectangle begins.
y

Type: Number
The Y coordinate of a point where the rectangle begins.
width

Type: Number
The height of the rectangle from the point.
height

Type: Number
The height of the rectangle from the point.
readonly

Type: Boolean
If the rectangle should be immutable.
Optional: True